powergrid-viewer 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/components/Game.vue
CHANGED
|
@@ -1106,12 +1106,7 @@ export default class Game extends Vue {
|
|
|
1106
1106
|
return !!this.committedState && this.player != null && canQueuePhases(this.committedState, this.player, []);
|
|
1107
1107
|
}
|
|
1108
1108
|
get hasPlanPanel(): boolean {
|
|
1109
|
-
return !!(
|
|
1110
|
-
this.roundPlan ||
|
|
1111
|
-
this.myPhaseQueue?.notice ||
|
|
1112
|
-
this.planningError ||
|
|
1113
|
-
this.pendingPlanId
|
|
1114
|
-
);
|
|
1109
|
+
return !!(this.roundPlan || this.planningError || this.pendingPlanId);
|
|
1115
1110
|
}
|
|
1116
1111
|
get myPhaseQueue() {
|
|
1117
1112
|
return this.committedState?.automation?.plans[this.player!];
|
|
@@ -1144,9 +1139,11 @@ export default class Game extends Vue {
|
|
|
1144
1139
|
)
|
|
1145
1140
|
return false;
|
|
1146
1141
|
const phases = completedPhases(this.roundPlan);
|
|
1147
|
-
return
|
|
1142
|
+
return (
|
|
1143
|
+
phases.length > 0 &&
|
|
1148
1144
|
!isEqual(phases, this.myPhaseQueue?.phases) &&
|
|
1149
|
-
canQueuePhases(this.committedState, this.player!, phases)
|
|
1145
|
+
canQueuePhases(this.committedState, this.player!, phases)
|
|
1146
|
+
);
|
|
1150
1147
|
}
|
|
1151
1148
|
get planPlaysNow(): boolean {
|
|
1152
1149
|
return (
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
there is no normal income payment.
|
|
29
29
|
</p>
|
|
30
30
|
</template>
|
|
31
|
-
<p v-if="queue && queue.notice" role="status" class="notice">{{ queue.notice }}</p>
|
|
32
31
|
<p v-if="pending" role="status">Saving premoves…</p>
|
|
33
32
|
<p v-if="error" role="status" class="notice">{{ error }}</p>
|
|
34
33
|
</section>
|