Fix #5930
This commit is contained in:
parent
1cd3419688
commit
c228155514
3 changed files with 15 additions and 0 deletions
|
@ -139,6 +139,14 @@ export default Vue.extend({
|
|||
async startGroup() {
|
||||
const groups1 = await this.$root.api('users/groups/owned');
|
||||
const groups2 = await this.$root.api('users/groups/joined');
|
||||
if (groups1.length === 0 && groups2.length === 0) {
|
||||
this.$root.dialog({
|
||||
type: 'warning',
|
||||
title: this.$t('noGroups'),
|
||||
text: this.$t('joinOrCreateGroup'),
|
||||
});
|
||||
return;
|
||||
}
|
||||
const { canceled, result: group } = await this.$root.dialog({
|
||||
type: null,
|
||||
title: this.$t('group'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue