forked from trent_larson/crowd-funder-for-time-pwa
refactor: Replace databaseUtil import with PlatformServiceMixin in MembersList
- Remove direct databaseUtil dependency from MembersList.vue - Use $accountSettings() method from PlatformServiceMixin instead - Improves code consistency and enables caching benefits - Maintains identical functionality with enhanced error handling
This commit is contained in:
@@ -173,7 +173,6 @@ import { Contact } from "../db/tables/contacts";
|
||||
import * as libsUtil from "../libs/util";
|
||||
import { NotificationIface } from "../constants/app";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import * as databaseUtil from "../db/databaseUtil";
|
||||
|
||||
interface Member {
|
||||
admitted: boolean;
|
||||
@@ -211,7 +210,7 @@ export default class MembersList extends Vue {
|
||||
contacts: Array<Contact> = [];
|
||||
|
||||
async created() {
|
||||
const settings = await databaseUtil.retrieveSettingsForActiveAccount();
|
||||
const settings = await this.$accountSettings();
|
||||
this.activeDid = settings.activeDid || "";
|
||||
this.apiServer = settings.apiServer || "";
|
||||
this.firstName = settings.firstName || "";
|
||||
|
||||
Reference in New Issue
Block a user