forked from trent_larson/crowd-funder-for-time-pwa
git commit -m "feat: migrate IdentitySwitcherView.vue to Enhanced Triple Migration Pattern
- Replace databaseUtil/PlatformServiceFactory with PlatformServiceMixin - Add notification helpers + centralized constants for identity management - Extract button styling and data corruption logic to computed properties - Improve TypeScript typing (Account interface) - 6-minute migration achieving technical compliance - All identity switching and deletion features preserved"
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<!-- Current Identity - Display First! -->
|
||||
<div
|
||||
v-if="activeDid && !activeDidInIdentities"
|
||||
v-if="hasCorruptedIdentity"
|
||||
class="block bg-slate-100 rounded-md flex items-center px-4 py-3 mb-4"
|
||||
>
|
||||
<font-awesome
|
||||
@@ -168,6 +168,14 @@ export default class IdentitySwitcherView extends Vue {
|
||||
return "flex flex-grow items-center bg-slate-100 rounded-md px-4 py-3 mb-2 truncate cursor-pointer";
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects if there's a data corruption issue with the active identity
|
||||
* Shows warning when an identity is selected but not found in storage
|
||||
*/
|
||||
get hasCorruptedIdentity(): boolean {
|
||||
return Boolean(this.activeDid && !this.activeDidInIdentities);
|
||||
}
|
||||
|
||||
// =================================================
|
||||
// HELPER METHODS - Template Logic Streamlining
|
||||
// =================================================
|
||||
|
||||
Reference in New Issue
Block a user