|
|
@@ -6,7 +6,7 @@
|
|
|
i.fa.fa-spin.fa-refresh
|
|
|
| #{translate("loading")}...
|
|
|
span.history-toolbar-selected-version(
|
|
|
- ng-show="!history.loadingFileTree && !history.showOnlyLabels && !history.error"
|
|
|
+ ng-show="!history.loadingFileTree && !history.showOnlyLabels && history.selection.updates.length && !history.error"
|
|
|
) #{translate("browsing_project_as_of")}
|
|
|
time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }}
|
|
|
span.history-toolbar-selected-version(
|
|
|
@@ -19,13 +19,13 @@
|
|
|
button.history-toolbar-btn(
|
|
|
ng-click="showAddLabelDialog();"
|
|
|
ng-if="!history.showOnlyLabels"
|
|
|
- ng-disabled="history.loadingFileTree"
|
|
|
+ ng-disabled="history.loadingFileTree || history.selection.updates.length == 0"
|
|
|
)
|
|
|
i.fa.fa-tag
|
|
|
| #{translate("history_label_this_version")}
|
|
|
button.history-toolbar-btn(
|
|
|
ng-click="toggleHistoryViewMode();"
|
|
|
- ng-disabled="history.loadingFileTree"
|
|
|
+ ng-disabled="history.loadingFileTree || history.selection.updates.length == 0"
|
|
|
)
|
|
|
i.fa.fa-exchange
|
|
|
| #{translate("compare_to_another_version")}
|