mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4454] The create library button should get disabled after being clicked once (#7046)
This commit is contained in:
@@ -20,7 +20,10 @@ import { from, Observable, throwError } from 'rxjs';
|
||||
import { AlfrescoApiService } from './alfresco-api.service';
|
||||
import {
|
||||
MinimalNode,
|
||||
SiteEntry, SiteGroupEntry, SiteGroupPaging,
|
||||
SiteBodyCreate,
|
||||
SiteEntry,
|
||||
SiteGroupEntry,
|
||||
SiteGroupPaging,
|
||||
SiteMemberEntry,
|
||||
SiteMemberPaging,
|
||||
SiteMembershipBodyCreate,
|
||||
@@ -42,6 +45,18 @@ export class SitesService {
|
||||
this.sitesApi = new SitesApi(apiService.getInstance());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a site
|
||||
* @param siteBody SiteBodyCreate to create site
|
||||
* @returns site SiteEntry
|
||||
*/
|
||||
createSite(siteBody: SiteBodyCreate): Observable<SiteEntry> {
|
||||
return from(this.sitesApi.createSite(siteBody))
|
||||
.pipe(
|
||||
catchError((err: any) => this.handleError(err))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a list of all sites in the repository.
|
||||
* @param opts Options supported by JS-API
|
||||
|
Reference in New Issue
Block a user