Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-wallet: Remove "VITE_FEATURE_ALLOCATE" flag #3355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed

- Remove version number from app title [#3339]
- Remove "VITE_FEATURE_ALLOCATE" flag [#3247]

### Fixed

Expand Down Expand Up @@ -513,6 +514,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#3226]: https://github.com/dusk-network/rusk/issues/3226
[#3238]: https://github.com/dusk-network/rusk/issues/3238
[#3245]: https://github.com/dusk-network/rusk/issues/3245
[#3247]: https://github.com/dusk-network/rusk/issues/3247
[#3259]: https://github.com/dusk-network/rusk/issues/3259
[#3265]: https://github.com/dusk-network/rusk/issues/3265
[#3267]: https://github.com/dusk-network/rusk/issues/3267
Expand Down
1 change: 0 additions & 1 deletion web-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ N.B. the current `0.1.2` version of the library has no option to pick the networ
```
# can be empty string, must start with a slash otherwise, must not end with a slash
VITE_BASE_PATH=""
VITE_FEATURE_ALLOCATE=true
VITE_FEATURE_MIGRATE=true
VITE_FEATURE_STAKE=true
VITE_FEATURE_TRANSFER=true
Expand Down
2 changes: 1 addition & 1 deletion web-wallet/src/lib/contracts/contract-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default [
],
},
{
enabled: import.meta.env.VITE_FEATURE_ALLOCATE === "true",
enabled: true,
id: "allocate",
label: "Allocate",
operations: [
Expand Down
12 changes: 5 additions & 7 deletions web-wallet/src/routes/(app)/dashboard/allocate/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
});
</script>

{#if import.meta.env.VITE_FEATURE_ALLOCATE || false}
<IconHeadingCard heading="Allocate" icons={[mdiSync]}>
<AllocateContract
on:operationChange={({ detail }) => updateOperation(detail)}
/>
</IconHeadingCard>
{/if}
<IconHeadingCard heading="Allocate" icons={[mdiSync]}>
<AllocateContract
on:operationChange={({ detail }) => updateOperation(detail)}
/>
</IconHeadingCard>
2 changes: 0 additions & 2 deletions web-wallet/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default defineConfig(({ mode }) => {
"import.meta.env.APP_VERSION": JSON.stringify(APP_VERSION),
"process.env": {
MODE_MAINTENANCE: env.VITE_MODE_MAINTENANCE,
VITE_FEATURE_ALLOCATE: env.VITE_FEATURE_ALLOCATE,
VITE_FEATURE_MIGRATE: env.VITE_FEATURE_MIGRATE,
VITE_FEATURE_STAKE: env.VITE_FEATURE_STAKE,
VITE_FEATURE_TRANSACTION_HISTORY: env.VITE_FEATURE_TRANSACTION_HISTORY,
Expand Down Expand Up @@ -86,7 +85,6 @@ export default defineConfig(({ mode }) => {
env: {
APP_BUILD_INFO: "hash1234 2024-01-12",
APP_VERSION: "0.1.5",
VITE_FEATURE_ALLOCATE: "true",
VITE_FEATURE_MIGRATE: "true",
VITE_FEATURE_STAKE: "true",
VITE_FEATURE_TRANSACTION_HISTORY: "true",
Expand Down
Loading