Skip to content

Commit adbc4f3

Browse files
author
david
committed
Merge remote-tracking branch 'upstream/master' into add-osnap-plugin
2 parents 3f783d0 + b66e9ff commit adbc4f3

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@shutter-network/shutter-crypto": "0.1.0-beta.3",
3939
"@snapshot-labs/lock": "^0.2.0",
4040
"@snapshot-labs/pineapple": "^1.1.0",
41-
"@snapshot-labs/snapshot.js": "^0.8.1",
41+
"@snapshot-labs/snapshot.js": "^0.8.3",
4242
"@snapshot-labs/tune": "^0.1.34",
4343
"@vue/apollo-composable": "4.0.0-beta.4",
4444
"@vueuse/core": "^10.4.0",

src/components/NavbarAccount.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function handleLogin(connector) {
1919
2020
const profile = computed(() => profiles.value[web3Account.value]);
2121
22-
watchEffect(() => {
22+
watch(web3Account, () => {
2323
loadProfiles([web3Account.value]);
2424
});
2525
</script>

src/components/SpaceCreateVotingDateEnd.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { d } = useI18n();
44
const props = withDefaults(
55
defineProps<{
66
period?: number | null;
7+
isEditing?: boolean;
78
date: number;
89
}>(),
910
{
@@ -12,6 +13,7 @@ const props = withDefaults(
1213
);
1314
1415
const dateString = computed(() => d(props.date * 1e3, 'short', 'en-US'));
16+
const isDisabled = computed(() => !!props.period || props.isEditing);
1517
1618
const emit = defineEmits(['select']);
1719
</script>
@@ -20,10 +22,10 @@ const emit = defineEmits(['select']);
2022
<InputDate
2123
type="end"
2224
:title="$t(`create.end`)"
23-
:disabled="!!period"
25+
:disabled="isDisabled"
2426
:date="date"
2527
:date-string="dateString"
26-
:tooltip="!!period ? $t('create.periodEnforced') : null"
28+
:tooltip="!!period && !isEditing ? $t('create.periodEnforced') : null"
2729
@update:date="emit('select', $event)"
2830
/>
2931
</template>

src/components/SpaceCreateVotingDateStart.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { t, d } = useI18n();
44
const props = withDefaults(
55
defineProps<{
66
delay?: number | null;
7+
isEditing?: boolean;
78
date: number;
89
}>(),
910
{
@@ -17,6 +18,7 @@ const dateString = computed(() =>
1718
? t('create.now')
1819
: d(props.date * 1e3, 'short', 'en-US')
1920
);
21+
const isDisabled = computed(() => !!props.delay || props.isEditing);
2022
2123
const emit = defineEmits(['select']);
2224
</script>
@@ -25,10 +27,10 @@ const emit = defineEmits(['select']);
2527
<InputDate
2628
type="start"
2729
:title="$t(`create.start`)"
28-
:disabled="!!delay"
30+
:disabled="isDisabled"
2931
:date="date"
3032
:date-string="dateString"
31-
:tooltip="!!delay ? $t('create.delayEnforced') : null"
33+
:tooltip="!!delay && !isEditing ? $t('create.delayEnforced') : null"
3234
@update:date="emit('select', $event)"
3335
/>
3436
</template>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,10 +1309,10 @@
13091309
dependencies:
13101310
ofetch "^1.3.3"
13111311

1312-
"@snapshot-labs/snapshot.js@^0.8.1":
1313-
version "0.8.1"
1314-
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.8.1.tgz#1bd8e939ec354dde89fbe284366bd11e8103c0c6"
1315-
integrity sha512-TTKfMBMaf+jQqpgsPezQ6pz5d3IXqO4z2P+Kwfa5W9Noz4+XfrvOHo2ADl4TuCBp922EvF7bfxLQVvKAakQZPA==
1312+
"@snapshot-labs/snapshot.js@^0.8.3":
1313+
version "0.8.3"
1314+
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.8.3.tgz#a514d879d472e9da7a762c610371e65ceef3f604"
1315+
integrity sha512-BU3esG+M7NP3qAdE+Kzlxgg+mgQFsjaxCGh6MKGWLLwgkA8Jg6i/EpYf9cBhhXQSdgPuBxfXC+OtK1ATnAzRkQ==
13161316
dependencies:
13171317
"@ensdomains/eth-ens-namehash" "^2.0.15"
13181318
"@ethersproject/abi" "^5.6.4"

0 commit comments

Comments
 (0)