Add tauri command to get all tags for a list of files

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent af104dedec
commit 209bc8a9d0

@ -20,3 +20,14 @@ pub async fn get_tags_for_file(
Ok(tags)
}
#[tauri::command]
pub async fn get_tags_for_files(
hashes: Vec<String>,
api_state: ApiAccess<'_>,
) -> PluginResult<Vec<TagResponse>> {
let api = api_state.api().await?;
let tags = api.tag.get_tags_for_files(hashes).await?;
Ok(tags)
}

@ -37,6 +37,7 @@ impl<R: Runtime> MediarepoPlugin<R> {
get_repositories,
get_all_tags,
get_tags_for_file,
get_tags_for_files,
get_active_repository,
add_repository,
select_repository,

Loading…
Cancel
Save