1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

Rebuild search index

This commit is contained in:
sauls8t 2018-03-29 12:23:09 +01:00
parent 30315a36c7
commit df0a13b6ed
18 changed files with 960 additions and 669 deletions

View file

@ -70,7 +70,7 @@ export default Service.extend({
return response;
});
}
},
},
// Saves auth config for Documize instance.
saveAuthConfig(config) {
@ -93,4 +93,24 @@ export default Service.extend({
});
}
},
// Returns product license.
searchStatus() {
if (this.get('sessionService.isGlobalAdmin')) {
return this.get('ajax').request(`global/search/status`, {
method: 'GET',
}).then((response) => {
return response;
});
}
},
// Saves product license.
reindex() {
if (this.get('sessionService.isGlobalAdmin')) {
return this.get('ajax').request(`global/search/reindex`, {
method: 'POST',
});
}
}
});