mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Add tooltips to bulk doc ops in space view
This commit is contained in:
parent
1887eb8100
commit
6c8f23792c
2 changed files with 5 additions and 3 deletions
|
@ -11,9 +11,10 @@
|
||||||
|
|
||||||
import { computed } from '@ember/object';
|
import { computed } from '@ember/object';
|
||||||
import { A } from "@ember/array"
|
import { A } from "@ember/array"
|
||||||
|
import TooltipMixin from '../../mixins/tooltip';
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend(TooltipMixin, {
|
||||||
showDeleteDialog: false,
|
showDeleteDialog: false,
|
||||||
showMoveDialog: false,
|
showMoveDialog: false,
|
||||||
selectedDocuments: A([]),
|
selectedDocuments: A([]),
|
||||||
|
@ -94,6 +95,7 @@ export default Component.extend({
|
||||||
|
|
||||||
this.set('selectedCaption', list.length > 1 ? 'documents' : 'document');
|
this.set('selectedCaption', list.length > 1 ? 'documents' : 'document');
|
||||||
this.set('selectedDocuments', A(list));
|
this.set('selectedDocuments', A(list));
|
||||||
|
this.renderTooltips();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
{{#if document.selected}}
|
{{#if document.selected}}
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{{#if permissions.documentMove}}
|
{{#if permissions.documentMove}}
|
||||||
<div class="move-documents-button button-icon-green button-icon-small align-middle" {{action 'onShowMoveDocuments'}}>
|
<div class="move-documents-button button-icon-green button-icon-small align-middle" {{action 'onShowMoveDocuments'}} data-toggle="tooltip" data-placement="top" title="Move">
|
||||||
<i class="material-icons">compare_arrows</i>
|
<i class="material-icons">compare_arrows</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-icon-gap" />
|
<div class="button-icon-gap" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if permissions.documentDelete}}
|
{{#if permissions.documentDelete}}
|
||||||
<div class="delete-documents-button button-icon-red button-icon-small align-middle" {{action 'onShowDeleteDocuments'}}>
|
<div class="delete-documents-button button-icon-red button-icon-small align-middle" {{action 'onShowDeleteDocuments'}} data-toggle="tooltip" data-placement="top" title="Delete">
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue