]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / copy2clipboard-button / copy2clipboard-button.component.html
index 25a3f3cfe252ff7fa700e0ed53c966819101cc9c..655364eefc0c6c6a935f3862f9a20339d1afc815 100644 (file)
@@ -1,7 +1,15 @@
-<button (click)="onClick()"
-        type="button"
-        class="btn btn-light"
-        i18n-title
-        title="Copy to Clipboard">
-  <i [ngClass]="[icons.clipboard]"></i>
-</button>
+<i [ngClass]="[icons.clipboard, icons.large]"
+   (click)="onClick()"
+   class="text-primary ms-2"
+   title="Copy to Clipboard"
+   *ngIf="showIconOnly; else withButtonTpl"></i>
+
+<ng-template #withButtonTpl>
+  <button (click)="onClick()"
+          type="button"
+          class="btn btn-light"
+          i18n-title
+          title="Copy to Clipboard">
+    <i [ngClass]="[icons.clipboard]"></i>
+  </button>
+</ng-template>