Skip to content

Commit c06514e

Browse files
committed
SD-Card, NASをoffした時に関連する設定項目が消えないbugの修正
1 parent 6fdb2e2 commit c06514e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

web/source/vue/Setting.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<ElSwitch v-model="config.STORAGE_SDCARD_PUBLISH" active-value="on" inactive-value="off" />
108108
</ElCol>
109109
</ElRow>
110-
<ElRow>
110+
<ElRow v-if="config.STORAGE_SDCARD==='on'">
111111
<ElCol :offset="2" :span="7">
112112
<ElTooltip :tabindex="-1" placement="top" content="録画するPATHをstrftimeの書式指定で記述します。最後に拡張子が付加されます。alarm_recordのみに有効。" effect="light" :open-delay="500">
113113
<h4>保存するPATH</h4>
@@ -117,7 +117,7 @@
117117
<ElInput type="text" v-model="config.STORAGE_SDCARD_PATH" @input="FixPath('STORAGE_SDCARD_PATH')" />
118118
</ElCol>
119119
</ElRow>
120-
<ElRow>
120+
<ElRow v-if="config.STORAGE_SDCARD==='on'">
121121
<ElCol :offset="2" :span="7">
122122
<ElTooltip :tabindex="-1" placement="top" content="SD-Cardに録画したファイルを自動的に削除します" effect="light" :open-delay="500">
123123
<h4>ファイルの自動削除</h4>
@@ -127,7 +127,7 @@
127127
<ElSwitch v-model="config.STORAGE_SDCARD_REMOVE" active-value="on" inactive-value="off" />
128128
</ElCol>
129129
</ElRow>
130-
<ElRow v-if="config.STORAGE_SDCARD_REMOVE === 'on'">
130+
<ElRow v-if="config.STORAGE_SDCARD==='on' && config.STORAGE_SDCARD_REMOVE === 'on'">
131131
<ElCol :offset="2" :span="7">
132132
<ElTooltip :tabindex="-1" placement="top" content="指定日数後に削除します" effect="light" :open-delay="500">
133133
<h4>保存日数</h4>
@@ -179,7 +179,7 @@
179179
<ElInput type="text" name="password" v-model="config.STORAGE_CIFSPASSWD" show-password />
180180
</ElCol>
181181
</ElRow>
182-
<ElRow>
182+
<ElRow v-if="config.STORAGE_CIFS === 'on'">
183183
<ElCol :offset="2" :span="7">
184184
<ElTooltip :tabindex="-1" placement="top" content="録画するPATHをstrftimeの書式指定で記述します。最後に拡張子が付加されます。" effect="light" :open-delay="500">
185185
<h4>保存するPATH</h4>
@@ -189,7 +189,7 @@
189189
<ElInput type="text" v-model="config.STORAGE_CIFS_PATH" @input="FixPath('STORAGE_CIFS_PATH')" />
190190
</ElCol>
191191
</ElRow>
192-
<ElRow>
192+
<ElRow v-if="config.STORAGE_CIFS === 'on'">
193193
<ElCol :offset="2" :span="7">
194194
<ElTooltip :tabindex="-1" placement="top" content="CIFS Serverに録画したファイルを自動的に削除します" effect="light" :open-delay="500">
195195
<h4>ファイルの自動削除</h4>
@@ -199,7 +199,7 @@
199199
<ElSwitch v-model="config.STORAGE_CIFS_REMOVE" active-value="on" inactive-value="off" />
200200
</ElCol>
201201
</ElRow>
202-
<ElRow v-if="config.STORAGE_CIFS_REMOVE === 'on'">
202+
<ElRow v-if="config.STORAGE_CIFS === 'on' && config.STORAGE_CIFS_REMOVE === 'on'">
203203
<ElCol :offset="2" :span="7">
204204
<ElTooltip :tabindex="-1" placement="top" content="指定日数後に削除します" effect="light" :open-delay="500">
205205
<h4>保存日数</h4>

0 commit comments

Comments
 (0)