-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7096 from ever-co/develop
Release
- Loading branch information
Showing
53 changed files
with
1,219 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../gauzy/src/app/@shared/table-components/github/resync-button/resync-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<button | ||
nbButton | ||
status="primary" | ||
class="mr-2" | ||
debounceClick | ||
(throttledClick)="onClicked($event)" | ||
[disabled]="!rowData?.repository?.hasSyncEnabled" | ||
> | ||
<div class="sync-container"> | ||
<nb-icon class="sync" icon="sync-outline"></nb-icon> | ||
{{ 'BUTTONS.RESYNC' | translate }} | ||
</div> | ||
</button> |
64 changes: 64 additions & 0 deletions
64
apps/gauzy/src/app/@shared/table-components/github/resync-button/resync-button.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { ViewCell } from 'ng2-smart-table'; | ||
|
||
@Component({ | ||
selector: 'ngx-resync-button', | ||
templateUrl: './resync-button.component.html', | ||
styleUrls: [], | ||
}) | ||
export class ResyncButtonComponent implements ViewCell { | ||
|
||
/** | ||
* Getter and Setter for managing a dynamic value. | ||
*/ | ||
_value: any; | ||
/** | ||
* Getter for retrieving the current value. | ||
* | ||
* @returns The current value of the dynamic element. | ||
*/ | ||
get value(): any { | ||
return this._value; | ||
} | ||
/** | ||
* Setter for updating the dynamic value. | ||
* This setter is decorated with @Input to allow external components to bind and update the value. | ||
* | ||
* @param value - The new value to set for the dynamic element. | ||
*/ | ||
@Input() set value(value: any) { | ||
// Stores the value in the local variable for future reference. | ||
this._value = value; | ||
} | ||
|
||
/** | ||
* An @Input property used to pass data from a parent component to this component. | ||
* | ||
*/ | ||
@Input() rowData: any; | ||
|
||
/** | ||
* An output property for emitting click events. | ||
* | ||
* This output property emits events of type Event when a click event occurs. | ||
*/ | ||
@Output() clicked: EventEmitter<Event> = new EventEmitter(); | ||
|
||
/** | ||
* Handle a click event, conditionally emitting it for further processing. | ||
* | ||
* @param event - The click event to be handled. | ||
*/ | ||
onClicked(event: Event) { | ||
// Access the repository data from the component's rowData. | ||
const repository = this.rowData.repository; | ||
|
||
// Check if the repository data exists and has synchronization enabled. | ||
if (!repository || !repository.hasSyncEnabled) { | ||
return; // If repository is missing or synchronization is not enabled, exit the function. | ||
} | ||
|
||
// Emit the event using an EventEmitter, possibly to notify other parts of the application. | ||
this.clicked.emit(event); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
...c/app/pages/integrations/github/components/settings-dialog/settings-dialog.component.html
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...c/app/pages/integrations/github/components/settings-dialog/settings-dialog.component.scss
This file was deleted.
Oops, something went wrong.
91 changes: 0 additions & 91 deletions
91
...src/app/pages/integrations/github/components/settings-dialog/settings-dialog.component.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.