mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 19:25:57 +00:00
api resource refactoring part 6
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
</PopoverItem>
|
||||
</PopoverWrapper>
|
||||
|
||||
<ToolbarButton v-if="canShowConvertToTeamFolder" @click.native="$updateTeamFolder(clipboard[0])" :class="{'is-inactive': ! canCreateTeamFolderInView }" source="user-plus" :action="$t('actions.convert_into_team_folder')" />
|
||||
<ToolbarButton v-if="canShowConvertToTeamFolder" @click.native="$convertAsTeamFolder(clipboard[0])" :class="{'is-inactive': ! canCreateTeamFolderInView }" source="user-plus" :action="$t('actions.convert_into_team_folder')" />
|
||||
<ToolbarButton @click.native="$shareFileOrFolder(clipboard[0])" :class="{'is-inactive': canShareInView }" source="share" :action="$t('actions.share')" />
|
||||
</ToolbarGroup>
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
if (args.name !== 'create-team-folder') return
|
||||
|
||||
if (args.item) {
|
||||
this.item = args.item[0]
|
||||
this.item = args.item
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Vendored
+5
-1
@@ -45,10 +45,14 @@ const itemHelpers = {
|
||||
})
|
||||
},
|
||||
|
||||
Vue.prototype.$createTeamFolder = function (entry) {
|
||||
Vue.prototype.$createTeamFolder = function () {
|
||||
events.$emit('popup:open', {name: 'create-team-folder'})
|
||||
}
|
||||
|
||||
Vue.prototype.$convertAsTeamFolder = function (entry) {
|
||||
events.$emit('popup:open', {name: 'create-team-folder', item: entry})
|
||||
}
|
||||
|
||||
Vue.prototype.$updateTeamFolder = function (entry) {
|
||||
events.$emit('popup:open', {name: 'update-team-folder', item: entry})
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
</OptionGroup>
|
||||
<OptionGroup>
|
||||
<Option @click.native="$shareFileOrFolder(item)" :title="item.data.relationships.shared ? $t('context_menu.share_edit') : $t('context_menu.share')" icon="share" />
|
||||
<Option @click.native="$updateTeamFolder(item)" v-if="isFolder" :title="$t('Convert as Team Folder')" icon="user-plus" />
|
||||
<Option @click.native="$convertAsTeamFolder(item)" v-if="isFolder" :title="$t('Convert as Team Folder')" icon="user-plus" />
|
||||
</OptionGroup>
|
||||
<OptionGroup>
|
||||
<Option @click.native="$openInDetailPanel(item)" :title="$t('context_menu.detail')" icon="detail" />
|
||||
|
||||
Reference in New Issue
Block a user