mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
fix broken dropdown
This commit is contained in:
parent
6cec99e3d5
commit
25fd9f6a79
@ -395,7 +395,8 @@ const usersView = Vue.component('users-view', {
|
||||
newUsername: '',
|
||||
newPassword: '',
|
||||
makeAdmin: Object.keys(ADMINDATA.users).length === 0 ? true : false,
|
||||
submitPending: false
|
||||
submitPending: false,
|
||||
selectInstance: null
|
||||
};
|
||||
},
|
||||
template: `
|
||||
@ -482,6 +483,12 @@ const usersView = Vue.component('users-view', {
|
||||
</div>
|
||||
</div>
|
||||
</div>`,
|
||||
mounted: function () {
|
||||
this.selectInstance = M.FormSelect.init(document.querySelectorAll(".material-select"));
|
||||
},
|
||||
beforeDestroy: function() {
|
||||
this.selectInstance[0].destroy();
|
||||
},
|
||||
methods: {
|
||||
openLastFmModal: function() {
|
||||
modVM.currentViewModal = 'lastfm-modal';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user