mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Hide analyze button if corpus is not ready for this
This commit is contained in:
parent
9578a12f42
commit
338e760bfb
@ -61,6 +61,9 @@ class Corpus(Model):
|
|||||||
subattr_value
|
subattr_value
|
||||||
return lookups
|
return lookups
|
||||||
|
|
||||||
|
def drop(self):
|
||||||
|
return self.client.api.corpus_drop_corpus(self.attrs['api_name'])
|
||||||
|
|
||||||
def query(self, query, subcorpus_name='Results'):
|
def query(self, query, subcorpus_name='Results'):
|
||||||
return self.client.api.cqp_query(self.attrs['api_name'],
|
return self.client.api.cqp_query(self.attrs['api_name'],
|
||||||
subcorpus_name, query)
|
subcorpus_name, query)
|
||||||
|
@ -74,6 +74,9 @@ indicator will show up how the column is sorted right now.; */
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* styles for resource lists */
|
/* styles for resource lists */
|
||||||
|
.analyse-link[href=""] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.service[data-service]:before {
|
.service[data-service]:before {
|
||||||
content: "help";
|
content: "help";
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ RessourceList.dataMapper = {
|
|||||||
corpus: corpus => ({creation_date: corpus.creation_date,
|
corpus: corpus => ({creation_date: corpus.creation_date,
|
||||||
description: corpus.description,
|
description: corpus.description,
|
||||||
id: corpus.id,
|
id: corpus.id,
|
||||||
"analyse-link": `/corpora/${corpus.id}/analyse`,
|
"analyse-link": ["analysing", "prepared", "start analysis"].includes(corpus.status) ? `/corpora/${corpus.id}/analyse` : "",
|
||||||
"edit-link": `/corpora/${corpus.id}`,
|
"edit-link": `/corpora/${corpus.id}`,
|
||||||
status: corpus.status,
|
status: corpus.status,
|
||||||
title: corpus.title}),
|
title: corpus.title}),
|
||||||
|
Loading…
Reference in New Issue
Block a user