|
@@ -335,6 +335,7 @@ type History struct {
|
|
|
type HistoryItem struct {
|
|
|
Title string `json:"title"`
|
|
|
Path string `json:"path"`
|
|
|
+ Op string `json:"op"`
|
|
|
}
|
|
|
|
|
|
const fileHistoryPageSize = 32
|
|
@@ -732,6 +733,7 @@ func fromSQLHistories(sqlHistories []*sql.History) (ret []*HistoryItem) {
|
|
|
item := &HistoryItem{
|
|
|
Title: sqlHistory.Title,
|
|
|
Path: filepath.Join(util.HistoryDir, sqlHistory.Path),
|
|
|
+ Op: sqlHistory.Op,
|
|
|
}
|
|
|
if HistoryTypeAsset == sqlHistory.Type {
|
|
|
item.Path = filepath.ToSlash(strings.TrimPrefix(item.Path, util.WorkspaceDir))
|