0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Reverted media inlining button in settings>labs

refs https://github.com/TryGhost/Toolbox/issues/524

- We no longer need the UI of any kind for the media inliner feature as
the inliner endpoint will be used mostly for internal purposes through
automated tooling
- This reverts commit 901485c47b.
This commit is contained in:
Naz 2023-03-14 21:57:35 +01:00
parent 8025663616
commit f442398239
2 changed files with 0 additions and 30 deletions

View file

@ -150,11 +150,6 @@ export default class LabsController extends Controller {
this.utils.downloadFile(this.ghostPaths.url.api(endpoint));
}
@action
startMediaInlinerAction() {
return this.startMediaInliner.perform();
}
@action
confirmDeleteAll() {
return this.modals.open(DeleteAllModal);
@ -218,19 +213,6 @@ export default class LabsController extends Controller {
return RSVP.resolve();
}
@(task(function*() {
const inlineURL = this.ghostPaths.url.api('db/media/inline');
yield this.ajax.post(inlineURL, {
dataType: 'json',
// @NOTE: the domains list will become input based
data: {
domains: []
}
});
// TODO: notify user the inliner has started
}).drop())
startMediaInliner;
@(task(function* (success) {
this.set('redirectSuccess', success);
this.set('redirectFailure', !success);

View file

@ -31,18 +31,6 @@
</div>
</div>
{{#if this.feature.mediaInliner}}
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Inline external media</h4>
<p class="gh-expandable-description">Download and inline external media files used in posts.</p>
</div>
<button type="button" class="gh-btn" {{on "click" this.startMediaInlinerAction}}><span>Start</span></button>
</div>
</div>
{{/if}}
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>