Skip to content

Commit

Permalink
replace old explorer url with the new one and remove edit option #1766
Browse files Browse the repository at this point in the history
  • Loading branch information
bassemmagdy committed Nov 17, 2021
1 parent c778282 commit 7c2de3b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 159 deletions.
55 changes: 0 additions & 55 deletions src/components/ExplorerUrlSetter/ExplorerUrlSetter.vue

This file was deleted.

99 changes: 0 additions & 99 deletions src/components/ExplorerUrlSetter/ExplorerUrlSetterTs.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/core/database/storage/SettingsModelStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export class SettingsModelStorage extends VersionedObjectStorage<Record<string,
description: 'Reset for fees update.',
migrate: () => undefined,
},
{
description: 'Reset for fees update.',
migrate: () => undefined,
},
],
});
}
Expand Down
11 changes: 9 additions & 2 deletions src/views/forms/FormGeneralSettings/FormGeneralSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
</template>
</FormRow>

<ExplorerUrlSetter v-model="formItems.explorerUrl" :auto-submit="false" @on-change="onChange" />

<FormRow>
<template v-slot:label> {{ $t('form_label_language') }}: </template>
<template v-slot:inputs>
Expand All @@ -42,6 +40,15 @@
</template>
</FormRow>

<FormRow>
<template v-slot:label> {{ $t('set_explorer_link') }}: </template>
<template v-slot:inputs>
<div class="inputs-container select-container">
{{ formItems.explorerUrl }}
</div>
</template>
</FormRow>

<div class="form-row form-submit">
<DeleteProfileButton @logout="logout" />
<div>
Expand Down
3 changes: 0 additions & 3 deletions src/views/forms/FormGeneralSettings/FormGeneralSettingsTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import FormWrapper from '@/components/FormWrapper/FormWrapper.vue';
// @ts-ignore
import FormRow from '@/components/FormRow/FormRow.vue';
// @ts-ignore
import ExplorerUrlSetter from '@/components/ExplorerUrlSetter/ExplorerUrlSetter.vue';
// @ts-ignore
import LanguageSelector from '@/components/LanguageSelector/LanguageSelector.vue';
// @ts-ignore
import MaxFeeSelector from '@/components/MaxFeeSelector/MaxFeeSelector.vue';
Expand All @@ -49,7 +47,6 @@ import { AccountModel } from '@/core/database/entities/AccountModel';
ErrorTooltip,
FormWrapper,
FormRow,
ExplorerUrlSetter,
LanguageSelector,
MaxFeeSelector,
AccountSelectorField,
Expand Down

0 comments on commit 7c2de3b

Please sign in to comment.