Skip to content

Commit

Permalink
enableBlobStorageOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
KTachibanaM committed May 30, 2024
1 parent e572710 commit 7dfa4e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class VideoFileModal implements OnInit, OnDestroy {
DOWNLOADED: VideoFile.STATUS_DOWNLOADED
};

enable_blob_storage_options = false;
enableBlobStorageOptions = false;

constructor(private _dialogRef: UIDialogRef<VideoFileModal>,
private _adminService: AdminService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ <h4 class="ui horizontal divider header">
<div class="three fields">
<div class="field">
<label>resolution_w</label>
<input type="text" formControlName="resolution_w" [readonly]="!enable_blob_storage_options">
<input type="text" formControlName="resolution_w" [readonly]="!enableBlobStorageOptions">
</div>
<div class="field">
<label>resolution_h</label>
<input type="text" formControlName="resolution_h" [readonly]="!enable_blob_storage_options">
<input type="text" formControlName="resolution_h" [readonly]="!enableBlobStorageOptions">
</div>
<div class="field">
<label>duration</label>
<input type="text" formControlName="duration" [readonly]="!enable_blob_storage_options">
<input type="text" formControlName="duration" [readonly]="!enableBlobStorageOptions">
</div>
</div>
<div class="field">
<label>download_url</label>
<input type="text" placeholder="magnet或torrent文件的url" formControlName="download_url">
</div>
<div class="field" *ngIf="enable_blob_storage_options">
<div class="field" *ngIf="enableBlobStorageOptions">
<label>blob_storage_url_v0</label>
<input type="text" placeholder="S3 存储 URL" formControlName="blob_storage_url_v0">
</div>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h4 class="ui horizontal divider header">
</form>
</div>
<div class="footer">
<ui-toggle text="(测试) 开启 S3 存储选项" [(ngModel)]="enable_blob_storage_options"></ui-toggle>
<ui-toggle text="(测试) 开启 S3 存储选项" [(ngModel)]="enableBlobStorageOptions"></ui-toggle>
<p><i class="help circle icon"></i>替换已完成或下载中的VideoFile的方法,先删除要替换的VideoFile在新建VideoFile</p>
</div>
</div>

0 comments on commit 7dfa4e0

Please sign in to comment.