mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Accompanying course evaluation documents: disable the WOPI edit link if no keyInfos
This commit is contained in:
parent
89064f55a1
commit
cff126953e
@ -340,9 +340,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
ISOToDatetime,
|
ISOToDatetime,
|
||||||
canEditDocument(document) {
|
canEditDocument(document) {
|
||||||
console.log(document);
|
|
||||||
return 'storedObject' in document ?
|
return 'storedObject' in document ?
|
||||||
this.mime.includes(document.storedObject.type) : false;
|
this.mime.includes(document.storedObject.type) && document.storedObject.keyInfos.length !== 0 : false;
|
||||||
},
|
},
|
||||||
listAllStatus() {
|
listAllStatus() {
|
||||||
console.log('load all status');
|
console.log('load all status');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user