Finished guestbook and gallery. started diary
This commit is contained in:
@@ -11,14 +11,12 @@
|
||||
<button type="submit">{{ $t('activate.submit') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
<ErrorDialog ref="errorDialog" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import apiClient from '@/utils/axios.js';
|
||||
import ErrorDialog from '@/dialogues/standard/ErrorDialog.vue';
|
||||
|
||||
export default {
|
||||
name: 'ActivateView',
|
||||
@@ -27,9 +25,6 @@ export default {
|
||||
token: this.$route.query.token || ''
|
||||
};
|
||||
},
|
||||
components: {
|
||||
ErrorDialog,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['user'])
|
||||
},
|
||||
@@ -43,7 +38,7 @@ export default {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error activating account:', error);
|
||||
this.$refs.errorDialog.open(this.$t('activate.failure'));
|
||||
this.$root.$refs.errorDialog.open(this.$t('activate.failure'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user