double check that volume is still around, only flag files as missing
This commit is contained in:
parent
ee315399bb
commit
8928b5447b
3 changed files with 66 additions and 14 deletions
|
|
@ -256,6 +256,42 @@ oml.ui.infoView = function(externalData, isMixed) {
|
|||
],
|
||||
float: 'right'
|
||||
})
|
||||
: data.missing
|
||||
? Ox.FormElementGroup({
|
||||
elements: [
|
||||
Ox.Button({
|
||||
style: 'squared',
|
||||
title: Ox._('Book Missing'),
|
||||
width: 112
|
||||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
if (!oml.readOnly) {
|
||||
oml.api.openFolder({id: oml.user.ui.item});
|
||||
}
|
||||
}
|
||||
}),
|
||||
Ox.MenuButton({
|
||||
items: [
|
||||
].concat(oml.readOnly ? [] : [
|
||||
{id: 'show', title: Ox._('Show File')}
|
||||
]),
|
||||
overlap: 'left',
|
||||
style: 'squared',
|
||||
title: 'select',
|
||||
tooltip: Ox._('File was removed'),
|
||||
type: 'image'
|
||||
})
|
||||
.bindEvent({
|
||||
click: function(data_) {
|
||||
if (!oml.readOnly) {
|
||||
oml.api.openFolder({id: oml.user.ui.item});
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
float: 'right'
|
||||
})
|
||||
: Ox.FormElementGroup({
|
||||
elements: [
|
||||
Ox.Button({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue