mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
[PM-9710] [Bootstrap] Hide file inputs when not using bootstrap (#10095)
When removing boostrap it seems the hidden attribute to the file inputs stops working. This implements a "quick" fix by just adding the tw-hidden class.
This commit is contained in:
parent
c72fae5c9a
commit
bc7c6dd04e
@ -82,6 +82,7 @@
|
|||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
hidden
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
|
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -19,12 +19,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
#fileSelector
|
#fileSelector
|
||||||
hidden
|
|
||||||
bitInput
|
bitInput
|
||||||
type="file"
|
type="file"
|
||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
accept="application/JSON"
|
accept="application/JSON"
|
||||||
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_organization_license.json" }}</bit-hint>
|
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_organization_license.json" }}</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
hidden
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
|
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
hidden
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{
|
<bit-hint>{{
|
||||||
"licenseFileDesc"
|
"licenseFileDesc"
|
||||||
|
@ -76,12 +76,13 @@
|
|||||||
<input
|
<input
|
||||||
bitInput
|
bitInput
|
||||||
#fileSelector
|
#fileSelector
|
||||||
hidden
|
|
||||||
type="file"
|
type="file"
|
||||||
id="file"
|
id="file"
|
||||||
name="file"
|
name="file"
|
||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "sendFileDesc" | i18n }} {{ "maxFileSize" | i18n }}</bit-hint>
|
<bit-hint>{{ "sendFileDesc" | i18n }} {{ "maxFileSize" | i18n }}</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
#fileSelector
|
#fileSelector
|
||||||
hidden
|
|
||||||
bitInput
|
bitInput
|
||||||
type="file"
|
type="file"
|
||||||
id="file"
|
id="file"
|
||||||
@ -19,6 +18,8 @@
|
|||||||
name="file"
|
name="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
accept="application/JSON"
|
accept="application/JSON"
|
||||||
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "acceptedFormats" | i18n }} Bitwarden (json)</bit-hint>
|
<bit-hint>{{ "acceptedFormats" | i18n }} Bitwarden (json)</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -382,6 +382,7 @@
|
|||||||
formControlName="file"
|
formControlName="file"
|
||||||
(change)="setSelectedFile($event)"
|
(change)="setSelectedFile($event)"
|
||||||
hidden
|
hidden
|
||||||
|
class="tw-hidden"
|
||||||
/>
|
/>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
|
Loading…
Reference in New Issue
Block a user