Skip to content

Commit ad6178f

Browse files
Separate Import Profile modal from Profiles.vue
1 parent 97a1264 commit ad6178f

File tree

4 files changed

+485
-475
lines changed

4 files changed

+485
-475
lines changed

src/components/mixins/ProfilesMixin.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ import sanitize from "sanitize-filename";
66
77
@Component
88
export default class ProfilesMixin extends Vue {
9+
910
get profileList(): string[] {
1011
return this.$store.state.profiles.profileList;
1112
}
1213
14+
get activeProfileName(): string {
15+
return this.$store.getters['profile/activeProfileName'];
16+
}
17+
1318
doesProfileExist(nameToCheck: string): boolean {
1419
if ((nameToCheck.match(new RegExp('^([a-zA-Z0-9])(\\s|[a-zA-Z0-9]|_|-|[.])*$'))) === null) {
1520
return true;

0 commit comments

Comments
 (0)