|
@ -62,7 +62,7 @@ |
|
|
|
|
|
|
|
|
<!-- New Project --> |
|
|
<!-- New Project --> |
|
|
<button |
|
|
<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" |
|
|
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()" |
|
|
@click="onClickNewProject()" |
|
|
> |
|
|
> |
|
@ -236,6 +236,7 @@ export default class ProjectsView extends Vue { |
|
|
projects: PlanData[] = []; |
|
|
projects: PlanData[] = []; |
|
|
currentIid: IIdentifier; |
|
|
currentIid: IIdentifier; |
|
|
isLoading = false; |
|
|
isLoading = false; |
|
|
|
|
|
isRegistered = false; |
|
|
numAccounts = 0; |
|
|
numAccounts = 0; |
|
|
offers: OfferSummaryRecord[] = []; |
|
|
offers: OfferSummaryRecord[] = []; |
|
|
showOffers = true; |
|
|
showOffers = true; |
|
@ -243,15 +244,13 @@ export default class ProjectsView extends Vue { |
|
|
|
|
|
|
|
|
libsUtil = libsUtil; |
|
|
libsUtil = libsUtil; |
|
|
|
|
|
|
|
|
/** |
|
|
async mounted() { |
|
|
* 'created' hook runs when the Vue instance is first created |
|
|
|
|
|
**/ |
|
|
|
|
|
async created() { |
|
|
|
|
|
try { |
|
|
try { |
|
|
await db.open(); |
|
|
await db.open(); |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
const activeDid: string = (settings?.activeDid as string) || ""; |
|
|
const activeDid: string = (settings?.activeDid as string) || ""; |
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
|
|
|
this.isRegistered = !!settings?.isRegistered; |
|
|
|
|
|
|
|
|
await accountsDB.open(); |
|
|
await accountsDB.open(); |
|
|
this.numAccounts = await accountsDB.accounts.count(); |
|
|
this.numAccounts = await accountsDB.accounts.count(); |
|
|