Skip to content
Snippets Groups Projects

Draft: Connect overage modal to account

Closed Laura Callahan requested to merge 363498-overage-modal_data into master
4 unresolved threads
6 files
+ 182
45
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -3,9 +3,7 @@ import { GlDropdown, GlDropdownItem } from '@gitlab/ui';
@@ -3,9 +3,7 @@ import { GlDropdown, GlDropdownItem } from '@gitlab/ui';
import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import { mapActions } from 'vuex';
import { mapActions } from 'vuex';
import { s__ } from '~/locale';
import { s__ } from '~/locale';
import {
import { guestOverageConfirmAction } from 'ee_else_ce/members/guest_overage_confirm_action';
guestOverageConfirmAction,
} from 'ee_else_ce/members/guest_overage_confirm_action';
export default {
export default {
name: 'RoleDropdown',
name: 'RoleDropdown',
@@ -54,11 +52,12 @@ export default {
@@ -54,11 +52,12 @@ export default {
},
},
}),
}),
async handleOverageConfirm(currentAccessLevel, value) {
async handleOverageConfirm(currentAccessLevel, value) {
return guestOverageConfirmAction({
return guestOverageConfirmAction({
currentAccessIntValue: currentAccessLevel,
currentAccessIntValue: currentAccessLevel,
dropdownIntValue: value,
dropdownIntValue: value,
subscriptionSeats: 0,
subscriptionSeats: 0,
totalUsers: 0,
totalUsers: 0,
 
// eslint-disable-next-line @gitlab/require-i18n-strings
groupName: 'a name',
groupName: 'a name',
});
});
},
},
@@ -84,7 +83,7 @@ export default {
@@ -84,7 +83,7 @@ export default {
this.$toast.show(s__('Members|Role updated successfully.'));
this.$toast.show(s__('Members|Role updated successfully.'));
})
})
.catch(() => {
.catch(() => {
//log?
// log?
})
})
.finally(() => {
.finally(() => {
this.busy = false;
this.busy = false;
Loading