mirror of
https://github.com/goharbor/harbor
synced 2025-04-15 12:36:43 +00:00
Merge pull request #2478 from wknet123/master-update-rule-creation
Update for rule creation and styles.
This commit is contained in:
commit
a66d2adfff
|
@ -3,7 +3,7 @@ export const REPLICATION_TEMPLATE: string = `
|
|||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="row flex-items-xs-between">
|
||||
<div class="flex-xs-middle option-left">
|
||||
<button *ngIf="withReplicationJob" class="btn btn-link" (click)="openModal()"><clr-icon shape="add"></clr-icon> {{'REPLICATION.REPLICATION_RULE' | translate}}</button>
|
||||
<button *ngIf="projectId" class="btn btn-link" (click)="openModal()"><clr-icon shape="add"></clr-icon> {{'REPLICATION.REPLICATION_RULE' | translate}}</button>
|
||||
<create-edit-rule [projectId]="projectId" (reload)="reloadRules($event)"></create-edit-rule>
|
||||
</div>
|
||||
<div class="flex-xs-middle option-right">
|
||||
|
|
|
@ -114,9 +114,6 @@ export class ReplicationComponent implements OnInit {
|
|||
}
|
||||
|
||||
ngOnInit() {
|
||||
if(!this.projectId) {
|
||||
this.errorHandler.warning('Project ID is unset.');
|
||||
}
|
||||
this.currentRuleStatus = this.ruleStatus[0];
|
||||
this.currentJobStatus = this.jobStatus[0];
|
||||
this.currentJobSearchOption = 0;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
export const REPOSITORY_STACKVIEW_STYLES: string = `
|
||||
.option-right {
|
||||
padding-right: 16px;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
export const REPOSITORY_STYLE = `.option-right {
|
||||
padding-right: 16px;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 12px;
|
||||
}`;
|
Loading…
Reference in New Issue
Block a user