frontend: refactor button styles to use primary-button class and update button types
This commit is contained in:
parent
2082e5ab74
commit
5ab0319302
@ -52,9 +52,9 @@
|
|||||||
<mat-icon>refresh</mat-icon>
|
<mat-icon>refresh</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button mat-raised-button (click)="createRoom()" class="create-room-btn" id="create-room-btn">
|
<button mat-button (click)="createRoom()" class="create-room-btn primary-button" id="create-room-btn">
|
||||||
<mat-icon>add</mat-icon>
|
<mat-icon>add</mat-icon>
|
||||||
Create New Room
|
Create Room
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@if (showFilters) {
|
@if (showFilters) {
|
||||||
@ -325,7 +325,7 @@
|
|||||||
<p>No rooms found. Create your first room to start hosting meetings and manage your video conferences.</p>
|
<p>No rooms found. Create your first room to start hosting meetings and manage your video conferences.</p>
|
||||||
|
|
||||||
<div class="getting-started-actions">
|
<div class="getting-started-actions">
|
||||||
<button mat-raised-button (click)="createRoom()" class="create-room-btn">
|
<button mat-button (click)="createRoom()" class="create-room-btn primary-button">
|
||||||
<mat-icon>add</mat-icon>
|
<mat-icon>add</mat-icon>
|
||||||
Create Your First Room
|
Create Your First Room
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -251,16 +251,6 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--ov-meet-spacing-md);
|
gap: var(--ov-meet-spacing-md);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.create-room-btn,
|
|
||||||
.refresh-rooms-btn {
|
|
||||||
@include ov-button-base;
|
|
||||||
|
|
||||||
mat-icon {
|
|
||||||
@include ov-icon(md);
|
|
||||||
margin-right: var(--ov-meet-spacing-sm);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
<div class="no-api-key">
|
<div class="no-api-key">
|
||||||
<h3>No API Key Generated</h3>
|
<h3>No API Key Generated</h3>
|
||||||
<p>Generate an API key to access OpenVidu Meet REST API endpoints.</p>
|
<p>Generate an API key to access OpenVidu Meet REST API endpoints.</p>
|
||||||
<button mat-raised-button class (click)="generateApiKey()">
|
<button mat-button class (click)="generateApiKey()" class="primary-button">
|
||||||
<mat-icon>vpn_key</mat-icon>
|
<mat-icon>vpn_key</mat-icon>
|
||||||
Generate API Key
|
Generate API Key
|
||||||
</button>
|
</button>
|
||||||
@ -179,10 +179,10 @@
|
|||||||
|
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button
|
<button
|
||||||
mat-raised-button
|
mat-button
|
||||||
color="primary"
|
|
||||||
(click)="saveWebhookConfig()"
|
(click)="saveWebhookConfig()"
|
||||||
[disabled]="webhookForm.invalid"
|
[disabled]="webhookForm.invalid"
|
||||||
|
class="primary-button"
|
||||||
>
|
>
|
||||||
<mat-icon>save</mat-icon>
|
<mat-icon>save</mat-icon>
|
||||||
Save Configuration
|
Save Configuration
|
||||||
|
|||||||
@ -34,8 +34,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button mat-stroked-button (click)="navigateTo('rooms/new')">
|
<button mat-button (click)="navigateTo('rooms/new')" class="primary-button">
|
||||||
<mat-icon class="ov-action-icon">add</mat-icon>
|
<mat-icon>add</mat-icon>
|
||||||
Create Room
|
Create Room
|
||||||
</button>
|
</button>
|
||||||
<button mat-button (click)="navigateTo('rooms')">
|
<button mat-button (click)="navigateTo('rooms')">
|
||||||
|
|||||||
@ -360,7 +360,7 @@ export class RoomsComponent implements OnInit {
|
|||||||
const bulkForceDeleteCallback = async () => {
|
const bulkForceDeleteCallback = async () => {
|
||||||
try {
|
try {
|
||||||
const roomIds = rooms.map((r) => r.roomId);
|
const roomIds = rooms.map((r) => r.roomId);
|
||||||
const response = await this.roomService.bulkDeleteRooms(roomIds, true); // force = true
|
const response = await this.roomService.bulkDeleteRooms(roomIds, true);
|
||||||
|
|
||||||
const currentRooms = this.rooms();
|
const currentRooms = this.rooms();
|
||||||
this.rooms.set(currentRooms.filter((r) => !roomIds.includes(r.roomId)));
|
this.rooms.set(currentRooms.filter((r) => !roomIds.includes(r.roomId)));
|
||||||
|
|||||||
@ -110,8 +110,8 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button
|
<button
|
||||||
mat-raised-button
|
mat-button
|
||||||
color="primary"
|
class="primary-button"
|
||||||
type="submit"
|
type="submit"
|
||||||
[disabled]="adminCredentialsForm.invalid"
|
[disabled]="adminCredentialsForm.invalid"
|
||||||
(click)="onSaveAdminCredentials()"
|
(click)="onSaveAdminCredentials()"
|
||||||
@ -153,7 +153,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button mat-raised-button color="primary" type="submit" (click)="onSaveAccessSettings()">
|
<button mat-button type="submit" (click)="onSaveAccessSettings()" class="primary-button">
|
||||||
Save configuration
|
Save configuration
|
||||||
</button>
|
</button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
|
|||||||
@ -120,16 +120,12 @@
|
|||||||
margin-top: var(--ov-meet-spacing-md);
|
margin-top: var(--ov-meet-spacing-md);
|
||||||
|
|
||||||
.quick-action-button {
|
.quick-action-button {
|
||||||
|
@include ov-button-base;
|
||||||
|
@include ov-theme-transition;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--ov-meet-spacing-sm);
|
gap: var(--ov-meet-spacing-sm);
|
||||||
color: var(--ov-meet-text-secondary);
|
color: var(--ov-meet-text-secondary);
|
||||||
@include ov-theme-transition;
|
|
||||||
|
|
||||||
// &:hover {
|
|
||||||
// color: var(--ov-meet-text-primary);
|
|
||||||
// background-color: var(--ov-meet-surface-hover);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,6 +19,17 @@
|
|||||||
background: var(--ov-meet-surface-color);
|
background: var(--ov-meet-surface-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.primary-button {
|
||||||
|
@include ov-button-base;
|
||||||
|
background-color: var(--ov-meet-color-secondary);
|
||||||
|
color: var(--ov-meet-text-on-secondary) !important;
|
||||||
|
|
||||||
|
&.mat-mdc-button-disabled {
|
||||||
|
background-color: var(--ov-meet-color-secondary-light) !important;
|
||||||
|
color: var(--ov-meet-text-disabled);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Spacing classes
|
// Spacing classes
|
||||||
.ov-mt-xs {
|
.ov-mt-xs {
|
||||||
margin-top: var(--ov-meet-spacing-xs);
|
margin-top: var(--ov-meet-spacing-xs);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user