refactor: Rename permission menu-item to menu-link

pull/28/head
Boaz Poolman 2021-11-11 22:43:52 +01:00
parent 35081eb85d
commit 6f8268f3ac
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ export default {
return component; return component;
}, },
permissions: pluginPermissions['menu-item'], permissions: pluginPermissions['menu-link'],
}); });
}, },
bootstrap(app) {}, bootstrap(app) {},

View File

@ -3,7 +3,7 @@ const pluginPermissions = {
// If the plugin link should be displayed in the menu // If the plugin link should be displayed in the menu
// And also if the plugin is accessible. This use case is found when a user types the url of the // And also if the plugin is accessible. This use case is found when a user types the url of the
// plugin directly in the browser // plugin directly in the browser
'menu-item': [{ action: 'plugin::config-sync.menu-item', subject: null }], 'menu-link': [{ action: 'plugin::config-sync.menu-link', subject: null }],
settings: [{ action: 'plugin::config-sync.settings.read', subject: null }], settings: [{ action: 'plugin::config-sync.settings.read', subject: null }],
}; };

View File

@ -30,8 +30,8 @@ module.exports = async () => {
}, },
{ {
section: 'plugins', section: 'plugins',
displayName: 'Link to plugin settings from the main menu', displayName: 'Menu link to plugin settings',
uid: 'menu-item', uid: 'menu-link',
pluginName: 'config-sync', pluginName: 'config-sync',
}, },
]; ];