diff --git a/package.json b/package.json index 724101a..b58b186 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "license": "MIT", - "version": "1.1.0", + "version": "1.2.0", "name": "@flaschengeist/users", "author": "Ferdinand Thiessen ", "homepage": "https://flaschengeist.dev/Flaschengeist", @@ -18,8 +18,8 @@ "lint": "eslint --ext .js,.ts,.vue ./src" }, "devDependencies": { - "@flaschengeist/api": "^1.0.0", - "@flaschengeist/types": "^1.0.0", + "@flaschengeist/api": "^1.1.0", + "@flaschengeist/types": "^1.2.0", "@quasar/app-webpack": "^3.7.2", "@typescript-eslint/eslint-plugin": "^5.8.0", "@typescript-eslint/parser": "^5.8.0", diff --git a/src/components/ApiKey.vue b/src/components/ApiKey.vue index fbe4381..da2b38b 100644 --- a/src/components/ApiKey.vue +++ b/src/components/ApiKey.vue @@ -7,7 +7,7 @@ color="negative" icon="mdi-delete" round - @click="$emit('delete', apiKey)" + @click="deleteKey" /> !!apiKey, }, - setup(props) { + setup(props, { emit }) { async function copyApiKey() { await navigator.clipboard.writeText(props.apiKey.token); console.log('copying api key', props.apiKey.token); } + function deleteKey() { + emit('delete', props.apiKey); + } return { + deleteKey, copyApiKey, }; }, diff --git a/src/components/ApiKeyForm.vue b/src/components/ApiKeyForm.vue index e022f54..061cd73 100644 --- a/src/components/ApiKeyForm.vue +++ b/src/components/ApiKeyForm.vue @@ -6,11 +6,12 @@ - + diff --git a/src/index.ts b/src/index.ts index f3f8945..bfaa866 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,8 @@ const plugin: FG_Plugin.Plugin = { id: 'users', name: 'User', innerRoutes: routes, - requiredModules: [['auth'], ['users'], ['roles']], - version: '0.0.1', + requiredModules: [['auth'], ['users', '2.2.0'], ['roles']], + version: '1.2.0', widgets: [ { priority: 1,