Skip to content

Commit

Permalink
chore(AdminSettings): use non-deprecated dialog lib
Browse files Browse the repository at this point in the history
  • Loading branch information
SteKoe committed May 29, 2020
1 parent b4d86a0 commit 56a22d8
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 5 deletions.
2 changes: 2 additions & 0 deletions js/adminsettings.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/adminsettings.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 56 additions & 3 deletions js/adminsettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/adminsettings.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

<script>
import axios from '@nextcloud/axios'
import { showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast'
export default {
name: 'AdminSettings',
Expand Down Expand Up @@ -99,7 +101,7 @@
console.log(propertylabel)
if(this.isBlank(propertylabel)) {
OCP.Toast.error(t('customproperties', 'Property has to have a name!'));
showError(t('customproperties', 'Property has to have a name!'));
return;
}
Expand Down
14 changes: 14 additions & 0 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"@nextcloud/axios": "^1.3.2",
"@nextcloud/browserslist-config": "^1.0.0",
"@nextcloud/dialogs": "^1.3.1",
"@nextcloud/vue": "^2.0.0",
"vue": "^2.6.11",
"vue-hot-reload-api": "^2.3.4"
Expand Down

0 comments on commit 56a22d8

Please sign in to comment.