|
|
@ -62,7 +62,7 @@ |
|
|
|
|
|
|
|
<!-- New Project --> |
|
|
|
<button |
|
|
|
v-if="showProjects" |
|
|
|
v-if="isRegistered && showProjects" |
|
|
|
class="fixed right-6 bottom-24 text-center text-4xl leading-none bg-blue-600 text-white w-14 py-2.5 rounded-full" |
|
|
|
@click="onClickNewProject()" |
|
|
|
> |
|
|
@ -236,6 +236,7 @@ export default class ProjectsView extends Vue { |
|
|
|
projects: PlanData[] = []; |
|
|
|
currentIid: IIdentifier; |
|
|
|
isLoading = false; |
|
|
|
isRegistered = false; |
|
|
|
numAccounts = 0; |
|
|
|
offers: OfferSummaryRecord[] = []; |
|
|
|
showOffers = true; |
|
|
@ -243,15 +244,13 @@ export default class ProjectsView extends Vue { |
|
|
|
|
|
|
|
libsUtil = libsUtil; |
|
|
|
|
|
|
|
/** |
|
|
|
* 'created' hook runs when the Vue instance is first created |
|
|
|
**/ |
|
|
|
async created() { |
|
|
|
async mounted() { |
|
|
|
try { |
|
|
|
await db.open(); |
|
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
|
const activeDid: string = (settings?.activeDid as string) || ""; |
|
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
|
this.isRegistered = !!settings?.isRegistered; |
|
|
|
|
|
|
|
await accountsDB.open(); |
|
|
|
this.numAccounts = await accountsDB.accounts.count(); |
|
|
|