Skip to content

Commit

Permalink
Hide 'Migrate' buttons in batch actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wraitii committed Nov 28, 2023
1 parent 103f03d commit df371b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/collections/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import contractStore, { ADDRESSES } from '@/chain/Contracts';
import { getCurrentNetwork, getPremigrationNetwork } from '@/chain/Network';
import { bookletDataStore } from '@/builder/BookletData';

export const MIGRATION_ENABLED = false;

export const getCalls = async (mapping: Record<string, unknown>) => {
const calls: Call[] = [];
const set_migrations: { old_token_id: string, new_token_id: string }[] = [];
Expand Down
3 changes: 2 additions & 1 deletion src/components/profile/ProfilePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import NewSetModalVue from '../builder/modals/NewSetModal.vue';
import { getCurrentNetwork, getNetworkName } from '@/chain/Network';
import Tooltip from '../generic/Tooltip.vue';
import { useProfileData, deleteSelected, disassembleSelected, migrateSets, selectedItems, disassemblableItems, migratableItems } from './ProfileData';
import { MIGRATION_ENABLED } from '../collections/migrate';
const {
inventoryBoxes,
Expand Down Expand Up @@ -145,7 +146,7 @@ div[data-name='menu'] button {
<p class="w-full text-center text-sm font-medium mb-4">{{ selectedItems.size }} selected</p>
<Btn v-if="activeTab == 'WIP'" :disabled="selectedItems.size == 0" secondary class="w-full text-sm font-normal mb-1" @click="deleteSelected()">Delete selected</Btn>
<Btn v-if="activeTab == 'CREATION'" :disabled="disassemblableItems.length == 0" secondary class="w-full text-sm font-normal mb-1" @click="disassembleSelected()">Disassemble selected</Btn>
<Btn v-if="activeTab == 'CREATION'" :disabled="migratableItems.length == 0" secondary class="w-full text-sm font-normal mb-1" @click="migrateSets(Array.from(selectedItems))">Migrate selected</Btn>
<Btn v-if="MIGRATION_ENABLED && activeTab == 'CREATION'" :disabled="migratableItems.length == 0" secondary class="w-full text-sm font-normal mb-1" @click="migrateSets(Array.from(selectedItems))">Migrate selected</Btn>
</template>
</div>
</div>
Expand Down

0 comments on commit df371b5

Please sign in to comment.